﻿@using InnovaApp.Layers.ResourcesLayer.Properties
@model InnovaApp.Portals.MVC4Portal.Models.ViewModels.LayoutViewModels.SecurityViewModels.ResetForgottenPassword_ViewModel
@{
    Layout = Model._CurrentSiteLayout;   
}
@using (Ajax.BeginForm(actionName: "", routeValues: null, ajaxOptions: new AjaxOptions() { HttpMethod = "Post", OnSuccess = "$.fn.MainAjaxSuccess", OnFailure = "$.fn.MainAjaxFailure" }, htmlAttributes: new { @class = "logonForm", @action = this.Context.Request.Url.PathAndQuery }))
{
    @Html.HiddenFor(m => m.ActivationCode)
    <fieldset class="centerMargin25 ui-widget ui-widget-content ui-corner-all padding15  ">
        <legend>@Resources.View_ForgotPassword_FormTitle</legend>
        <ol>
            <li>
                @Html.LabelFor(m => m.RegistrationElements.Email)
                @Html.TextBoxFor(m => m.RegistrationElements.Email, new { @readonly = "readonly" })
                @Html.ValidationMessageFor(m => m.RegistrationElements.Email)
            </li>
            <li>
                @Html.LabelFor(m => m.RegistrationElements.Password)
                @Html.PasswordFor(m => m.RegistrationElements.Password)
                @Html.ValidationMessageFor(m => m.RegistrationElements.Password)
            </li>
            <li>
                @Html.LabelFor(m => m.RegistrationElements.ConfirmPassword)
                @Html.PasswordFor(m => m.RegistrationElements.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.RegistrationElements.ConfirmPassword)
            </li>
            <li>
                @Html.LabelFor(m => m.RegistrationElements.SecurityQuestion)
                @Html.TextBoxFor(m => m.RegistrationElements.SecurityQuestion)
                @Html.ValidationMessageFor(m => m.RegistrationElements.SecurityQuestion)
            </li>
            <li>
                @Html.LabelFor(m => m.RegistrationElements.SecurityAnswer)
                @Html.TextBoxFor(m => m.RegistrationElements.SecurityAnswer)
                @Html.ValidationMessageFor(m => m.RegistrationElements.SecurityAnswer)
            </li>
        </ol>
        <div>
            <input type="submit" value="@Resources.View_All_Ok" class="submitButton centred" />
        </div>
    </fieldset>
}